package com.ok.es.domain.po;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 帖子
 * </p>
 *
 * @author author
 * @since 2024-04-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OkCard对象", description="帖子")
public class OkCard implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "作者")
    private Long userId;

    @ApiModelProperty(value = "分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "浏览次数")
    private Integer viewNum;

    @ApiModelProperty(value = "评论次数")
    private Integer commentNum;

    @ApiModelProperty(value = "点赞次数")
    private Integer goodNum;

    @ApiModelProperty(value = "雪花id标识")
    private Long snowflakeId;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
